//<script type="text/javascript">
function validate()
{ 
   if(document.Registration.Name.value == "")
   {
     //alert( "Please provide your Name!" );
     //document.Registration.vName.value = "Please provide your Name!"
     document.getElementById('vName').show();
     //document.StudentRegistration.textnames.focus() ;
     return false;
   }
   if( document.Registration.Surname.value == "" )
   {
     alert( "Please provide your Surname!" );
     document.Registration.Surname.focus() ;
     return false;
   }   
   var email = document.Registration.Mail.value;
  atpos = email.indexOf("@");
  dotpos = email.lastIndexOf(".");
 if (email == "" || atpos < 1 || ( dotpos - atpos < 2 )) 
 {
     alert("Please enter correct email")
     document.Registration.Mail.focus() ;
     return false;
 }
   if ( ( Registration.status[0].checked == false ) && ( Registration.status[1].checked == false ) )
   {
    alert ( "Please choose your Status: Student or Teacher" );
    return false;
   }   
 
   return( true );
}
//</script>
